package com.example.supermarket.mapper;

import com.example.supermarket.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select * from user where username=#{username} and password=#{password}")
    User login(User user);
    @Select("select * from user where user_id=#{userId}")
    User findRole(Integer userId);
}
